import request from '@/sheep/request';

export default {
  // 首页新闻
  homeNews: () =>
    request({
      url: 'article.article/category',
      method: 'POST',
      params: {},
    }),
  // 新闻列表
  newsList: (params) =>
    request({
      url: 'article.article',
      method: 'GET',
      params: params,
    }),
  // 新闻详情
  newsDetail: (id) =>
    request({
      url: 'article.article/detail',
      method: 'GET',
      params: {
        id: id,
      },
    }),
  // 报备
  reporting: (params) =>
    request({
      url: 'article.article/reporting',
      method: 'POST',
      params: params,
    }),
};